package com.lyl.dangdang.mapper;

import com.lyl.dangdang.pojo.po.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author liyunlong
 * @since 2024-06-03
 */

@Mapper
public interface UserMapper extends BaseMapper<User> {
    User findByEmail(String email);

    @Select("select * from t_user where user_id=#{id}")
    User findById(Long id);

    int deleteByRegisterId(Integer userId);
}
